<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>文件系统</title>
</head>
<body>
	<form action="./upload.php" enctype="multipart/form-data" method="post">
		<input type="file" multiple name="upload">
		<input type="submit" value="上传">
	</form>

	<table border="1">
		<tr>
			<td>文件名</td>
			<td>文件大小</td>
			<td>操作</td>
		</tr>
		<?php foreach ($path as $row) { ?>
			<tr>
				<td><?php echo basename($row) ?></td>
				<td><?php echo filesize($row) ?></td>
				<td><a href="<?php echo  $row ?>">下载</a></td>
			</tr>
		<?php } ?>
	</table>
</body>
</html>